<!--
 * @Descripttion: 工具栏图标
 * @LastEditors: xzh
 * @LastEditTime: 2023-07-24 10:36:23
-->
<template>
  <el-icon><component :is="props.icon" :name="props.iconName" /></el-icon>
</template>

<script setup lang="ts">
import { componentType } from "@/utils/typings/index.type";

const props = defineProps({
  //图标组件
  icon: {
    type: componentType,
    requited: {},
    default: true,
  },
  //图标name
  iconName: String,
});
</script>
<style lang="scss" scoped></style>
